package ;

//import flash.display.Sprite;
import flash.events.Event;
import flash.Lib;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.display.Bitmap;
import openfl.Assets;

/**
 * ...
 * @author test
 */

//TODO: This is, clearly, a test and therefore must be reviewed in depth.

class Main {
	private var engine:Engine;

	//Constructor... nothing else to say here.
	public function new():Void {
		this.engine = new Engine();
		Lib.current.addChild(this.engine);
	}

//	Method from template. Find out what is it for.
//	function added(e):Void {
//		removeEventListener(Event.ADDED_TO_STAGE,added);
//		#if ios
//		haxe.Timer.delay(init,100); // iOS 6
//		#else
//		init();
//		#end
//	}

	//Static entry point.
	//TODO: Method from template. Find out explanation in documentation.
	public static function main():Void {
		new Main();
	}
}
